package com.jemmyee.core.entity;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import org.hibernate.annotations.GenericGenerator;

/**
 * @Description:支付方式
 * @author:jemmyee@gmail.com
 * @date:2011-4-1
 * @version:v1.0
 */
@Entity(name="com.jemmyee.core.entity.Payment")
@Table(name = "core_payment")
public class Payment implements java.io.Serializable {

	// Fields

	private Short id;
	private String code;
	private String name;
	private String fee;
	private String brief;
	private Integer sortOrder;
	private String config;
	private Short isEnable;
	private Short isCod;
	private Short isOnline;

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Short getId() {
		return this.id;
	}

	public void setId(Short id) {
		this.id = id;
	}

	@Column(name = "code", unique = true, length = 20)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "name", length = 120)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "fee", length = 10)
	public String getFee() {
		return this.fee;
	}

	public void setFee(String fee) {
		this.fee = fee;
	}

	@Column(name = "brief", length = 65535)
	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}
	
	@Column(name = "sort_order")

	public Integer getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	@Column(name = "config", length = 65535)
	public String getConfig() {
		return this.config;
	}



	public void setConfig(String config) {
		this.config = config;
	}

	@Column(name = "is_enable")
	public Short getIsEnable() {
		return this.isEnable;
	}

	public void setIsEnable(Short isEnable) {
		this.isEnable = isEnable;
	}

	@Column(name = "is_cod")
	public Short getIsCod() {
		return this.isCod;
	}

	public void setIsCod(Short isCod) {
		this.isCod = isCod;
	}

	@Column(name = "is_online")
	public Short getIsOnline() {
		return this.isOnline;
	}

	public void setIsOnline(Short isOnline) {
		this.isOnline = isOnline;
	}

}